package com.seal.model;



/**
 * GroupMemberId entity. @author MyEclipse Persistence Tools
 */

public class GroupMemberId  implements java.io.Serializable {


    // Fields    

     private Long groupId;
     private Long memberId;


    // Constructors

    /** default constructor */
    public GroupMemberId() {
    }

    
    /** full constructor */
    public GroupMemberId(Long groupId, Long memberId) {
        this.groupId = groupId;
        this.memberId = memberId;
    }

   
    // Property accessors

    public Long getGroupId() {
        return this.groupId;
    }
    
    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getMemberId() {
        return this.memberId;
    }
    
    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof GroupMemberId) ) return false;
		 GroupMemberId castOther = ( GroupMemberId ) other; 
         
		 return ( (this.getGroupId()==castOther.getGroupId()) || ( this.getGroupId()!=null && castOther.getGroupId()!=null && this.getGroupId().equals(castOther.getGroupId()) ) )
 && ( (this.getMemberId()==castOther.getMemberId()) || ( this.getMemberId()!=null && castOther.getMemberId()!=null && this.getMemberId().equals(castOther.getMemberId()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getGroupId() == null ? 0 : this.getGroupId().hashCode() );
         result = 37 * result + ( getMemberId() == null ? 0 : this.getMemberId().hashCode() );
         return result;
   }   





}